package com.education.liteormtest;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.Default;
import com.litesuits.orm.db.annotation.NotNull;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by zhonghang on 2016/10/18.
 */
@Table("table_student")
public class Student {
    @NotNull
    private String name;

    @NotNull
    @Column("column_sex")
    private String sex;

    @Default("一班的")
    private String clazz;
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    private int num;

    public Student() {
    }

    public Student(String name, String sex, String clazz) {
        this.name = name;
        this.sex = sex;
        this.clazz = clazz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getClazz() {
        return clazz;
    }

    public void setClazz(String clazz) {
        this.clazz = clazz;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
